package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

@SuppressWarnings("serial")
@Entity
@Table(name = "thong_tin_tu_van")
@NamedQueries({
//      @NamedQuery(name = "getAllLawHypothesis", query = "SELECT c FROM Luat c") ,
        @NamedQuery(name = "getAllLawHypothesis", query = "SELECT c FROM Luat c where c.gTKL = 0"),
        @NamedQuery(name = "getAllLawReason", query = "SELECT c FROM Luat c where c.gTKL = 1")
})
public class Luat implements Serializable {
    public static final String GET_INFO_LAWHYPOTHESIS = "getAllLawHypothesis";
    public static final String GET_INFO_LAWREASON = "getAllLawReason";

   @Id
   @Column(name = "MA_TT")
   private String maLuat;

   @Column(name = "TEN_THONG_TIN")
   private String tenLuat;

   @Column(name = "LOAI")
   private Long gTKL;

   public String getMaLuat() {
      return maLuat;
   }

   public void setMaLuat(String maLuat) {
      this.maLuat = maLuat;
   }

   public String getTenLuat() {
      return tenLuat;
   }

   public void setTenLuat(String tenLuat) {
      this.tenLuat = tenLuat;
   }

   public Long getgTKL() {
      return gTKL;
   }

   public void setgTKL(Long gTKL) {
      this.gTKL = gTKL;
   }
}
